package com.dt.utils;

import com.alibaba.fastjson.JSON;
import com.dt.dto.TextMessageDto;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;

/**
 * @Auther: dengtao
 * @Date: 2019/11/26 16:30
 * @Description:
 */
public class ReturnMsgUtil {

    public static TextWebSocketFrame returnMsg(TextMessageDto textMessageDto){
        return new TextWebSocketFrame(JSON.toJSONString(textMessageDto));
    }

}
